package com.engine4cloud.tdf.supervision.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.engine4cloud.tdf.supervision.dto.result.*;
import com.engine4cloud.tdf.supervision.dto.result.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HomeIndexMapper {
    HomeIndexTaskResultDTO taskCount(@Param("deptIdList") List<Long> deptIdList);

    HomeIndexCorrectorResultDTO count(@Param("deptIdList") List<Long> deptIdList);

    List<HomeIndexCorrectorSexRateResultDTO> sexRate(List<Long> deptIdList);

    List<HomeIndexCrimeCategoryResultDTO> crimeCategory(@Param("deptIdList") List<Long> deptIdList);

    List<HomeIndexAgeRangeResultDTO> ageRange(@Param("deptIdList") List<Long> deptIdList);

    IPage<HomeIndexSpResultDTO> taskPage(Page<Object> page, @Param("deptIdList") List<Long> deptIdList);
}